#include <stdio.h>

#include "help/util.h"

int main(int argc, char* argv[]) {
    if (argc < 3) {
        return 1;
    }

    unsigned user_id = (unsigned)atoi(argv[1]);
    unsigned unit_id = (unsigned)atoi(argv[2]);

    char* root = getenv("RELAT_ROOT");

    double x = 0, y = 0, z = 0;
    get_unit_position(root, unit_id, &x, &y, &z);

    printf("%.3f %.3f %.3f\n", x, y, z);

    return 0;
}